﻿using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;

namespace GUITEST
{
    public class Kernel : Sys.Kernel
    {
        protected override void BeforeRun()
        {
            Cosmos.Hardware.VGAScreen vga = new Cosmos.Hardware.VGAScreen();

            vga.TestMode320x200x8();

            vga.SetPaletteEntry(0, 0, 0, 0);

            vga.Clear(15);


            uint x, y;
            x = 0;
            y = 0;
            int count;
            uint color;
            count = 0;
            
            color = 0;
            while (count < 100)
            {
                count = count + 1;
                x = x + 1;
                y = y + 1;
                vga.SetPixel(x, y, color);
            }
        }

        protected override void Run()
        {
            
        }
    }
}
